package cn.itcast.scala.course04

/**
  * 通常用在模式匹配
  * create by zhangtian on 2019/1/3
  */
object CaseClassApp {
  def main(args: Array[String]): Unit = {
    println(Dog("水梦星光").name)
  }

  // case class不需要new
  case class Dog(name: String)
}
